$('#menu2').click(function () {
    window.location.href = Feng.ctxPath + "/my";
});
$('#menu3').click(function () {
    window.location.href = Feng.ctxPath + "/testModel/recite";
});
// $('#menu4').click(function () {
//     window.location.href = Feng.ctxPath + "/testModel/answer";
// });
$('#menu5').click(function () {
    window.location.href = Feng.ctxPath + "/testModel/random";
});
$('#menu6').click(function () {
    window.location.href = Feng.ctxPath + "/testModel/test";
});
$('#menu7').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "咨询师"
        },
        success: function (data) {
            if (data == 0) {
                alert("错题集为空!");
            } else {
                window.location.href = Feng.ctxPath + "/testModel/error";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#kounei').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "口内"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/kounei";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#kouwai').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "口外"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/kouwai";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#kouxiu').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "口修"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/kouxiu";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#koujie').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "口解"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/koujie";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#yywh').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "咿呀文化"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/yywh";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#qita').click(function () {
    $.ajax({
        url: Feng.ctxPath + "/error/getCtCount",
        type: "post",
        data: {
            "titleType": "其他"
        },
        success: function (data) {
            if (data == 0) {
                alert("该章节错题为空!");
            } else {
                window.location.href = Feng.ctxPath + "/error/qita";
            }
        },
        error: function (data) {
            alert('内部故障!');
        }
    });
});
$('#fanhui').click(function () {
    window.location.href = Feng.ctxPath + "/testMenu";
});
$('#zhuye').click(function () {
    window.location.href = Feng.ctxPath + "/testMenu";
});
$('#qingkong').click(function () {
    window.location.href = Feng.ctxPath + "/testMenu/delete";
});

